FROM java:8
MAINTAINER yangrd <yangrd_1992@sina.com>
VOLUME /tmp
ARG JAR_FILE
ADD target/${JAR_FILE}  /app.jar
RUN bash -c 'touch /app.jar'
EXPOSE 8080

ENTRYPOINT ["java","-jar","/app.jar","--spring.profiles.active=rel"]
